import { Post, Get, Patch, Put, Delete, ax } from '../http/http'

export default {
  /**
   * 登录
   */
  login: function (obj) {
    return Get("Account/GetLogin", obj)
  },
  /**
   * 获取验证码
   */
  getSendCode(phone) {
    return Get(`SmsCodeInfo/GetSendAsync?phone=${phone}`, {})
  },
  /**
   * 注册企业
   */
  addEnterprise(obj) {
    return Post(`Comm/AddEnterprise`, obj)
  },
  /**
   * 注册企业
   */
  getEnterpriseCode(name) {
    return Get(`Comm/GetEnterpriseCode`, {name:name})
  },
}
